﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace CoreEx.Database.Query
{
    public interface IQueryExpression : IExpression
    {
        IExpression FromExpression { get; set; }
        IExpression WhereExpression { get;}
        //IDbCommand ToCommand();
    }

    public interface ISelectExpression : IQueryExpression
    {
        int TakeCount { get; set; }
        int SkipCount { get; set; }
        IExpression ProjectionExpression { get; set; }
        IExpression GroupByExpression { get; }
        IExpression OrderByExpression { get; }
        IExpression IntoExpression { get; }
        bool IsSubQuery { get; set; }
    }   
}
